<?php

declare(strict_types=1);

namespace app\admin\controller\settings;


use think\response\Json;
use app\admin\controller\Controller;

class App extends Controller
{
    /**
     * @var \app\admin\service\settings\AppService
     */
    protected $service = null;

    public function initialize()
    {
        parent::initialize();
        $this->service = new \app\admin\service\settings\AppService();
    }

    public function app(): Json
    {
        return success('保存成功', $this->service->app(request()->param()));
    }
}
